package com.woniu.outlet.elasticSearch.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.redis.core.RedisHash;

import java.math.BigDecimal;

/**
 * @description:
 * @author: my
 * @time: 2021/4/20 9:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "funds", shards = 1, replicas = 1)
public class Fund {
    @Id
    @Field(type = FieldType.Keyword)
    private String code;    //基金代码
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String name;    //基金名称
    @Field(type = FieldType.Keyword)
    private String fundType;    //基金类型
    @Field(type = FieldType.Keyword)
    private String netWorth;   //当前基金单位净值
    @Field(type = FieldType.Keyword)
    private String dayGrowth;       //单位净值日涨幅
    @Field(type = FieldType.Keyword)
    private String lastWeekGrowth;  //单位净值周涨幅
    @Field(type = FieldType.Keyword)
    private String lastMonthGrowth;  //单位净值月涨幅
    @Field(type = FieldType.Keyword)
    private String lastThreeMonthsGrowth;  //单位净值三月涨幅
    @Field(type = FieldType.Keyword)
    private String lastSixMonthsGrowth;  //单位净值六月涨幅
    @Field(type = FieldType.Keyword)
    private String lastYearGrowth;  //单位净值年涨幅
    @Field(type = FieldType.Keyword)
    private String thisYearGrowth;  //今年的涨幅

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFundType() {
        return fundType;
    }

    public void setFundType(String fundType) {
        this.fundType = fundType;
    }

    public String getNetWorth() {
        return netWorth;
    }

    public void setNetWorth(String netWorth) {
        this.netWorth = netWorth;
    }

    public String getDayGrowth() {
        return dayGrowth;
    }

    public void setDayGrowth(String dayGrowth) {
        this.dayGrowth = dayGrowth;
    }

    public String getLastWeekGrowth() {
        return lastWeekGrowth;
    }

    public void setLastWeekGrowth(String lastWeekGrowth) {
        this.lastWeekGrowth = lastWeekGrowth;
    }

    public String getLastMonthGrowth() {
        return lastMonthGrowth;
    }

    public void setLastMonthGrowth(String lastMonthGrowth) {
        this.lastMonthGrowth = lastMonthGrowth;
    }

    public String getLastThreeMonthsGrowth() {
        return lastThreeMonthsGrowth;
    }

    public void setLastThreeMonthsGrowth(String lastThreeMonthsGrowth) {
        this.lastThreeMonthsGrowth = lastThreeMonthsGrowth;
    }

    public String getLastSixMonthsGrowth() {
        return lastSixMonthsGrowth;
    }

    public void setLastSixMonthsGrowth(String lastSixMonthsGrowth) {
        this.lastSixMonthsGrowth = lastSixMonthsGrowth;
    }

    public String getLastYearGrowth() {
        return lastYearGrowth;
    }

    public void setLastYearGrowth(String lastYearGrowth) {
        this.lastYearGrowth = lastYearGrowth;
    }

    public String getThisYearGrowth() {
        return thisYearGrowth;
    }

    public void setThisYearGrowth(String thisYearGrowth) {
        this.thisYearGrowth = thisYearGrowth;
    }

}
